package com.effectiv.req1.repository;

import java.util.List;

import org.springframework.data.domain.Sort;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import com.effectiv.req1.domain.Project;
import com.effectiv.req1.domain.ProjectActivity;

@Repository
public interface ProjectActivityRepository extends MongoRepository<ProjectActivity, String>{
	
	List<ProjectActivity> findByProject(Project project);
	List<ProjectActivity> findByProjectIsIn(List<Project> projects, Sort sort);	
}
